import { createSSRApp } from "vue";
import App from "./App.vue";

// 导入 ColorUI 组件
import cuCustom from './colorui/components/cu-custom.vue';

export function createApp() {
  const app = createSSRApp(App);
  
  // 初始化 globalData
  app.config.globalProperties.globalData = {};

  // 在 Vue 3 中注册全局组件
  app.component('cu-custom', cuCustom);
  
  return {
    app,
  };
}
